
<?php
 
require 'includes/db.php';
require 'header.php';
?>
<script src="js/jquery-1.8.2.min.js" type="text/javascript"></script>
<script src="js/jquery.validate.js" type="text/javascript"></script>
<script src="js/register.jquery.js" type="text/javascript"></script>
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
    <form id="registerId" action="" method="post" enctype="multipart/form-data">
 <?php
$tableName='current_opening';
if(isset($_POST['submit'])){
	$_POST = array_map('trim',$_POST);
	unset($_POST['submit']);
	$id= insert($tableName, $_POST);
	echo success("Job Success Fully Added on #id $id<a href=\"welcome.php\">View jobs</a>");
	exit;
	
	
	
}


 ?>

        <table class="table table-striped">
        	<thead>
        		<th colspan="2"><b>Add New Job</b></th>
        	</thead>
            <tbody>
                <tr>
                    <td width="20%" align="right">Job Title :</td>
                    <td width="40%" align="right">
                        <input  class="form-control" type="text" name="tittle"/>
                    </td>
                    <td width="40%" align="right"><label for="tittle" generated="true" class="error"></label></td>
                </tr>
                <tr>
                    <td align="right">Description-1:</td>
                    <td><input class="form-control" type="text" name="d1" /> </td>
                    <td><label for="d1" generated="true" class="error"></label>
                </tr>
                <tr>
                    <td align="right">Description-2:</td>
                    <td><input class="form-control" type="text" name="d2" /> </td>
                    <td><label for="d2" generated="true" class="error"></label>
                </tr>
                <tr>
                    <td align="right">Description-3:</td>
                    <td><input class="form-control" type="text" name="d3" /> </td>
                    <td><label for="d3" generated="true" class="error"></label>
                </tr>
                <tr>
                    <td align="right">Description-4:</td>
                    <td><input class="form-control" type="text" name="d4" /> </td>
                    <td><label for="d4" generated="true" class="error"></label>
                </tr>
                <tr>
                    <td align="right">Skills-1:</td>
                    <td><input class="form-control" type="text" name="s1" /> </td>
                    <td><label for="s1" generated="true" class="error"></label>
                </tr>
                <tr>
                    <td align="right">Skills-2:</td>
                    <td><input class="form-control" type="text" name="s2" /> </td>
                    <td><label for="s2" generated="true" class="error"></label>
                </tr>
                <tr>
                    <td align="right">Skills-3:</td>
                    <td><input class="form-control" type="text" name="s3" /> </td>
                    <td><label for="s3" generated="true" class="error"></label>
                </tr>
                <tr>
                    <td align="right">Skills-4:</td>
                    <td><input class="form-control" type="text" name="s4" /> </td>
                    <td><label for="s4" generated="true" class="error"></label>
                </tr>
                <tr>
                    <td align="right">&nbsp;</td>
                    <td >
                        <input type="submit" name="submit" value="Add Member" />        </td>
                    <td align="right">&nbsp;</td>
                </tr>

            </tbody>

        </table>
    </form>
</div>